package util;

import javax.swing.JPanel;
import javax.swing.SwingUtilities;

import Ventanas.Ventana;

public class GetFrame {
	
	
	public static Ventana getVentana(JPanel panel)
	{
		
		return (Ventana) SwingUtilities.getWindowAncestor(panel); 
		
		
	}

}
